clear all
set more off

* set directory where code and data is stored
global main_dir // insert directory here

cd "$main_dir/data"
do "$main_dir/building_processing_macros"


********************************************************************************

/* 1. Create neighborhood (tract) and metro area (CBSA) characteristics. Data
are from the 2000 Census and different years of the Census ACS. They were 
downloaded from the Census Bureau API, described here: 
https://www.census.gov/data/developers/guidance/api-user-guide.html */

********************************************************************************

create_neighborhood_characteristics

********************************************************************************

**** 2. next, import the geocoded data on new buildings and clean the
* characteristic variables

********************************************************************************

new_buildings


********************************************************************************

**** 3. next, get counts of how many other new buildings are near each new building

********************************************************************************

count_nearby


********************************************************************************

**** 4.  finally, combine the various data sets on building and neighborhood 
* characteristics to make data sets that can be used to create the summary statistic
* tables in the text

********************************************************************************

building_neighborhood_char

